package com.example.crm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.crm.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zz
 * @since 2024-05-28
 */
public interface IUserService extends IService<User> {
    User login(String usrName, String usrPassword);

    User getUser(Long usrId);

    List<User> findAllUsers();

    List<User> getAllUsers(String usrName, Long roleId);

    User getUserByName(String usrName);

    boolean del(Long usrId);
    Page<User> selectPage(String usrName, Integer roleId, Page<User> page);
}
